import request from "@/utils/request";

//远程查询
export function getSessionSuggestions(keyword) {
  return request({
    url: "/commgr/competitionsessions",
    method: "get",
    params: { keyword },
  });
}

// 查询赛项届次列表
export function listCompetitionsessions(query) {
  return request({
    url: "/commgr/competitionsessions/list",
    method: "get",
    params: query,
  });
}

// 查询赛项届次详细
export function getCompetitionsessions(sessionId) {
  return request({
    url: "/commgr/competitionsessions/" + sessionId,
    method: "get",
  });
}

// 新增赛项届次
export function addCompetitionsessions(data) {
  return request({
    url: "/commgr/competitionsessions",
    method: "post",
    data: data,
  });
}

// 修改赛项届次
export function updateCompetitionsessions(data) {
  return request({
    url: "/commgr/competitionsessions",
    method: "put",
    data: data,
  });
}

// 删除赛项届次
export function delCompetitionsessions(sessionId) {
  return request({
    url: "/commgr/competitionsessions/" + sessionId,
    method: "delete",
  });
}
